package cn.cuilan.hutool.http.server;

import cn.hutool.http.HttpUtil;
import cn.cuilan.hutool.http.server.action.FirePushAction;

/**
 * @author zhangyan
 * @since 2022/6/21
 */
public class HttpServer {

    /**
     * http://127.0.0.1:8888/simple/push
     */
    public static void main(String[] args) {
        int port = 8888;
        HttpUtil.createServer(port)
                .addAction(FirePushAction.URI, new FirePushAction())
                .start();
    }

}
